Skip to content

fix: avoid utf8 panic in string preview truncation#890

Merged
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:fix/panic
May 26, 2026
Merged

fix: avoid utf8 panic in string preview truncation#890
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:fix/panic

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented May 26, 2026

Replace direct byte slicing in remote SSH, relay websocket, and CLI
session preview paths with UTF-8-safe truncation helpers to prevent
panic when handling Chinese or other multibyte text.

Also add a relay-server test covering multibyte truncation boundaries.

Replace direct byte slicing in remote SSH, relay websocket, and CLI
session preview paths with UTF-8-safe truncation helpers to prevent
panic when handling Chinese or other multibyte text.

Also add a relay-server test covering multibyte truncation boundaries.
@wsp1911 wsp1911 merged commit d3e0c12 into GCWing:main May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant